#!/usr/bin/env bash

cat test2.txt | jsrun 'var x, xx=[]; for(;(x=read())!==false;xx[xx.length]=x); alert("===\n"+xx.join("\n")+"\n===\n")'